package com.sample.infinispan.client;

import org.jboss.resteasy.annotations.jaxrs.PathParam;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/hello")
public class GreetingResource {

    @GET
    @Path("{id}")
    @Produces(MediaType.TEXT_PLAIN)
    public String hello(@PathParam String id) {
        System.out.println("hi!"+id);
        return id;

    }
}